#!/usr/bin/env python

from os import system
import gtk
import vte
import time
from subprocess import Popen, PIPE

    
def show_callback(terminal):
	terminal.feed_child('ls\n')
	

window = gtk.Window()
window.connect('destroy', lambda w: gtk.main_quit())

terminal = vte.Terminal()
terminal.fork_command()
terminal.connect("show", show_callback)



window.add(terminal)
window.show_all()
gtk.main()


